<?php
namespace app\index\model;
use think\Model;
use think\Db;
class User extends Model
{
	public function login($data){
		$where=[
           'name'=>$data['name'],
           'pwd'=>$data['pwd']
		];
		$user=Db::name('user')->where($where)->find();
		if($user){

				return 3; //信息正确
			

		}else{
			return 1;//用户不存在
		}
	}


	
}
